import Vue from 'vue'
import Vuex from 'vuex'
import getters from './getters'
import app from './modules/app'
import user from './modules/user'
import settings from './modules/settings'
// import VuexPersistence from 'vuex-persist' //防止vuex 刷新丢失数据
Vue.use(Vuex)

// const vuexLocal = new VuexPersistence({
//     storage: window.localStorage
// })

const store = new Vuex.Store({
    modules: {
        app,
        user,
        settings
    },
    getters,
    // plugins: [vuexLocal.plugin]
})



export default store